from rest_framework import serializers
from goods.models import SPUSpecification


# spu规格表管理
class SpecViewSerializer(serializers.ModelSerializer):
    # 1,spu重写
    spu = serializers.StringRelatedField(read_only=True)
    spu_id = serializers.IntegerField()


    class Meta:
        model = SPUSpecification
        fields = "__all__"


